<%@ page language="java" import="java.util.*,com.hs.core.db.*,com.hs.core.utils.*,java.net.*,com.hs.app.action.search.*" pageEncoding="utf-8"%>
<%@page import="com.hs.core.cache.DictCacheUtil"%>
<%
 String pid = (String)request.getAttribute("pid");
 String filePath = (String)request.getAttribute("filePath");
 String biblioinfo = (String)request.getAttribute("biblioinfo");
 String btype = (String)request.getAttribute("btype"); // 文献类型
 String ptype = (String)request.getAttribute("ptype"); // 药物主题
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head> 
	<%@ include file="../../include.jsp"%> 
	<script src='<%=basePath%>thirtpart/jquery/jquery.blockUI.js'></script> 
	<script src='<%=basePath%>dwr/interface/produceHelper.js'></script>
	<script src='<%=basePath%>app/js/ArrayUtil.js'></script>
	<script src='<%=basePath%>app/js/ProduceUtil.js'></script>
	<script src="<%=basePath%>app/js/selectsearch/jquery.selectseach.min.js"></script>
	<style>
		/*CSS补丁*/
		.tac{text-align:center}
		.tableList,.tableForm{table-layout:fixed;width: 97%;}
		.tableList td,.tableForm td{overflow:hidden; text-overflow:ellipsis;white-space: nowrap;}
		.data-right{position:relative;}
		.tableForm td input{width: 84%;}
		.tab span{cursor: pointer;}
		.tab span i{cursor: pointer;}
		.delOper{color: blue;cursor: pointer;}
		.delOper:HOVER{text-decoration: underline;}
	</style>	

	<script type="text/javascript">
	var pid = '<%= pid %>'; // 题录主键
	var themeDrug = '<%= ptype %>'; //药物主题
	var documentType = '<%= btype %>'; //文献类型  3 1
	$(document).ready(function(){
		// 调整显示TAB,并切换至第一个TAB
		var tabs = Params.getTabs();
		$('#' + tabs[0]).addClass('curr');
		produceviewchange(Params.getCascadeTab(tabs[0]));
		
		// SELECT加载下拉菜单
		var dictLoaded = Params.getDict();
		for(var form in dictLoaded){
			var dictData = dictLoaded[form];
			for(var colum in dictData){
				FillOptions(form,colum,getDictData(dictData[colum]));
			}
		}
		
		$('select').selectseach('<%=basePath%>app/js/selectsearch/img/');
		
		// 加载TAB页数据
		loadTabData(tabs);
		
		// 为按钮绑定事件
		$('form').each(function(){
			var $id = $(this).attr('id');
			var $form = $(this);
			// 绑定保存事件
			$form.find('[name="save"]').bind('click',function(){
				saveForm($id);
			});
			// 绑定清空表单事件
			$form.find('[name="clear"]').bind('click',function(){
				// 清空本身表单
				$(':input',$form)
					 .not(':button, :submit, :reset') 
					 .val('')
					 .removeAttr('checked')  
					 .removeAttr('selected');
					 
				var forms = Params.getAttachForm($form.attr('id'));
				// 级联清空
				if(null != forms && undefined != forms){
					forms.each(function(AttForm){
						DWRUtil.removeAllRows("t"+AttForm);
						$(':input','#'+AttForm)
						 .not(':button, :submit, :reset') 
						 .val('')
						 .removeAttr('checked')  
						 .removeAttr('selected');
					});
				}
			});
			
			// 列表绑定事件
			$form.find('.tableList tbody tr').each(function(){
				var $tr = $(this);
				// 绑定单选查询
				$(':radio',$tr).bind('click',function(){
					alert($(this).val());
				});
				// 绑定删除
				$('a',$tr).bind('click',function(){
					alert($(this).val());
				});
			});
		});
		
		window.onbeforeunload = function(){
			return '确定已经保存编辑的内容，\r\n选择“离开此页”可能会丢失刚才编辑的内容，\r\n选择“留在此页”可以继续编辑或保存后再选择离开。';
		};
	});
	 
	 function produceviewchange(viewid){
		 var divid = "#produce_"+viewid;  
		 if(viewid == 'one'){
			 $("#produce_one").css('display','block');
		 }else{
			 $("#produce_one").css('display','none');
		 }
		 if(viewid == 'two'){
			 $("#produce_two").css('display','block');
		 }else{
			 $("#produce_two").css('display','none');
		 }
		 if(viewid == 'three'){
			 $("#produce_three").css('display','block');
		 }else{
			 $("#produce_three").css('display','none');
		 }
		 if(viewid == 'four'){
			 $("#produce_four").css('display','block');
		 }else{
			 $("#produce_four").css('display','none');
		 }
		 if(viewid == 'five'){
			 $("#produce_five").css('display','block');
		 }else{
			 $("#produce_five").css('display','none');
		 }
	 }
	 
	 function viewBiblio(pid){
		 var obj = document.getElementById('leftcontent2');
		 var objbiblio = document.getElementById('leftcontent1');
		 if(null != obj){
		 		obj.style.display='none';
		 	}
		 	if(null != objbiblio){
		 		objbiblio.style.display='block';
		 	}
		 $("leftcontent1").html(biblioinfo); 
	 }
	
	function viewPdf(pid){
		 <% if(null !=filePath){%>
		 	var obj = document.getElementById('leftcontent2');
		 	var objbiblio = document.getElementById('leftcontent1');
		 	if(null != obj){
		 		obj.style.display='block';
		 	}
		 	if(null != objbiblio){
		 		objbiblio.style.display='none';
		 	}
		 <%}else{%>
		    alert('没有原文!');
		 <%}%>
	 }
	 
	 function returnList(){
		 window.location.href="<%=basePath%>produce/paperlist.do"; 
	 }
	</script>
</head>
<body class="bodyBg">
	<div class="data-left"> 
	    <%-- <div class="tab">
	        <span class="curr" onclick="javaScript:viewBiblio('<%=pid%>');"><i>题录信息</i></span>
	        <span onclick="javaScript:viewPdf('<%=pid%>');"><i>原文</i></span>
	    </div> --%>
	    <div class="tab" id="leftcontent1" style="display:block">
	    	&nbsp;&nbsp;&nbsp;<input type="button" value="返回列表" onclick="javaScript:returnList();" class="btn" />
	    </div>
	    <div class="result_inrto" id="leftcontent2" style="display:block">
	    <iframe id="papercontent" name="papercontent" style="width:100%"  frameborder="0" src="<%=basePath%>upload<%=filePath==null?"/noselect.pdf":filePath%>"></iframe>
	    </div>
	</div>

	<div class="data-right">
		<div class="tab">
	        <span id="tab_1" onclick="produceviewchange('one');"><i>实验情况信息</i></span>
	        <span id="tab_2" onclick="produceviewchange('two');"><i>方剂&成药&中药信息</i></span>
	        <span id="tab_3" onclick="produceviewchange('three');"><i>不良反应报道信息</i></span>
	        <span id="tab_4" onclick="produceviewchange('four');"><i>临床观察信息</i></span>
	        <span id="tab_5" onclick="produceviewchange('five');"><i>活性组分信息</i></span>
	    </div>

		<!-- 实验情况信息 -->    
		<div id="produce_one" style="display:block">
			<div class="title">
		    	<span>实验情况信息</span>
		    </div>
		    <form id="syqk">
		    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th width="20%">实验对象类型</th>
		          <th width="30%">实验对象</th>
		          <th>备注</th> 
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tsyqk"></tbody>
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
			        <tr>
			          <th>实验对象类型</th>
			          <td><input name="id" type="hidden" /><select name="sydxlx" id="s_sydxlx" m="search"></select></td> 
			        </tr>
			        <tr>
			          <th>实验对象</th>
			          <td><input name="sydx" type="text" style="width:93.5%;"/></td>
			        </tr>
			         <tr>
			          <th>备注</th>
			          <td><input name="memo" type="text" style="width:93.5%;"/></td> 
			        </tr>
			        <tr>
			          <th colspan="2">
			          	 <input name="save" type="button" value="保存" class="btn" />
			             <input name="clear" type="button" value="新建" class="btn" />
			          </th>
			        </tr>
			      </table>
		     </form>
		      
			<div class="title">
				<span>技术方法</span>
			    <em>填写实验所用到的实验方法类型、实验方法名称等信息</em>
			</div>
			<form id="jsff">
			 <table border="0" cellpadding="0" cellspacing="0" class="tableList">
			      <thead>
			        <tr>
			          <th width="5%">选择</th>
			          <th width="20%">实验方法类型</th>
			          <th>实验方法名称</th> 
			          <th width="10%">操作</th>
			        </tr>
			        </thead>
			        <tbody id="tjsff"></tbody>
			      </table>
			      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
			        <tr>
			          <th>实验方法类型</th>
			          <td><input name="id" type="hidden" /><select id="s_syfflx" m="search" name="syfflx"/></td> 
			        </tr> 
			        <tr>
			          <th>实验方法名称</th>
			          <td><select id="s_syffmc" m="search" name="syffmc"/></td> 
			        </tr>
			        <tr>
			          <th>备注</th>
			          <td><input name="memo" type="text" style="width:93.5%;"/></td> 
			        </tr> 
			        <tr>
			          <th colspan="2">
			          	 <input name="save" type="button" value="保存" class="btn" />
			             <input name="clear" type="button" value="新建" class="btn" />
			          </th>
			        </tr>
			      </table>
		   	</form>
		   	
		   	<div class="title">
				<span>药理信息</span>
			    <em>填写药理作用、作用机制等信息</em>
			</div>
			<form id="ylzy">
			 <table border="0" cellpadding="0" cellspacing="0" class="tableList">
			        <thead>
			        <tr>
			          <th width="5%">选择</th>
			          <th width="40%">药理作用</th>
			          <th>代谢产物名称</th> 
			          <th width="10%">操作</th>
			        </tr>
			        </thead>
			        <tbody id="tylzy"></tbody>
			      </table>
			      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>药理作用</th>
		          <td><select id="s_ylzy" m="search" name="ylzy"></select><input name="id" type="hidden" /></td>
		          <th>代谢产物名称</th>
		          <td><input name="dxcw" type="text" /></td>
		        </tr>
		        <tr>
		          <th>药代动力学参数</th>
		          <td><select id="s_yddlx" m="search" name="yddlx"/></td>
		          <th>药代动力学参数数值</th>
		          <td><input name="yddlxcs" type="text" /></td>
		        </tr>
		        <tr>
		          <th>作用机制</th>
		          <td colspan=3><input name="zyjz" type="text" /></td>
		        </tr>
		        <tr>
		          <th>不良反应记录</th>
		          <td colspan=3><input name="blfyjl" type="text" style="width:93.5%;"/></td>
		        </tr>
		        <tr>
		          <th>备注</th>
		          <td colspan=3><input name="memo" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		        <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn"/>
		             <input name="clear" type="button" value="新建" class="btn" />
		        </th>
		        </tr>
		      </table>
		   	</form>
		   	
		   	<div class="title">
		    	<span>疗效指标</span>
		        <em>指标类型&nbsp;&nbsp;&nbsp;&nbsp;指标名称&nbsp;&nbsp;&nbsp;&nbsp;</em>
		        </div>
		        <form id="sylxzb">
		    	<table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th width="30%">指标类型</th>
		          <th width="35%">指标名称</th> 
		          <th width="*">备注</th> 
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tsylxzb"></tbody> 
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>指标类型</th>
		          <td><input name="id" type="hidden" /><select id="s_zblx_1" m="search" name="zblx"/></td>
		          <th>指标名称</th>
		          <td><input name="zbmc" type="text" /></td>
		        </tr>
		        <tr> 
		          <th>有效率</th>
		          <td><input name="youxl" type="text" /></td>
		          <th>备注</th>
		          <td><input name="memo" type="text"/></td>
		        </tr> 
		        <tr>
		          <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form>
     	</div>
      		
      		
		<!-- 方剂&成药&中药信息 -->   
		<div id="produce_two" style="display:none">
			<div class="title">
		    	<span>方剂&成药</span>
		    </div>
		    <form id="zycy">
		    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th width="20%">名称</th>
		          <th width="10%">剂型</th>
		          <th width="20%">来源</th>
		          <th width="15%">用法用量</th>
		          <th>给药方式</th> 
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tzycy"></tbody> 
		     </table>
		     
		     <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>名称</th>
		          <td><input name="id" type="hidden" /><input name="zycymc" type="text" /></td>
		          <th>剂型</th>
		          <td><select id="s_jixing" m="search" name="jixing"/></td>
		        </tr>
		        <tr>
		          <th>来源</th>
		          <td><input name="laiyuan" type="text" /></td>
		          <th>用法用量</th>
		          <td><input name="yfyl" type="text" /></td>
		        </tr>
		         <tr>
		          <th>给药方式</th>
		          <td><select id="s_geiyfs" m="search" name="geiyfs"></select></td>
		          <th>临床适应症</th>
		          <td><input name="lincsyz" type="text" /></td>
		        </tr>
		        <tr>
		          <th>功能主治</th>
		          <td colspan=3><input name="gongnzz" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>方解</th>
		          <td colspan=3><input name="fangjie" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>备注</th>
		          <td colspan=3><input name="memo" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		        	<th colspan="4">
		          	 	<input name="save" type="button" value="保存" class="btn"/>
		            	<input name="clear" type="button" value="新建" class="btn"/>
		        	</th>
		        </tr>
		      </table>
		   </form>
		    
		    <div class="title">
		    	<span>中药信息表</span>
		        <em>中药名称&nbsp;&nbsp;&nbsp;&nbsp;中药剂量&nbsp;&nbsp;&nbsp;&nbsp;剂量单位</em>
		    </div>
		    <form id="zyzz">
		    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th>中药名称</th>
		          <th width="20%">中药剂量</th>
		          <th width="15%">剂量单位</th> 
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tzyzz"></tbody>
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>中药名称</th>
		          <td colspan=3><input name="id" type="hidden" /><input name="herbname" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>中药剂量</th>
		          <td><input name="herbcount" type="text" /></td>
		          <th>剂量单位</th>
		          <td><select id="s_herbunit" m="search" name="herbunit"/></td> 
		        </tr>
		         <tr>
		          <th>备注</th>
		          <td colspan=3><input name="memo" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form>
		      
		    <div class="title">
		    	<span>不良反应报道信息</span>
		    </div>
		    <form id="zblfybd">
		    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th>药物厂家</th>
		          <th width="20%">治疗病种</th>
		          <th width="15%">给药方式</th>
		          <th width="15%">用法用量</th>
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tzblfybd"></tbody> 
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>药物厂家</th>
		          <td><input name="id" type="hidden" /><input name="yapwcj" type="text" /></td>
		          <th>治疗病种</th>
		          <td><input name="zhiliaobz" type="text" /></td>
		        </tr>
		        <tr>
		          <th>给药方式</th>
		          <td><select id="s_geiyaofs_1" m="search" name="geiyaofs"/></td>
		          <th>用法用量</th>
		          <td><input name="yongfyl" type="text" /></td>
		        </tr>
		         <tr>
		          <th>原因分类</th>
		          <td><select id="s_buliangfyfl_1" name="buliangfyfl" type="text"/></td> 
		          <th>产生原因</th>
		          <td><select id="s_buliangfyyy_1" name="buliangfyyy" type="text"/></td> 
		        </tr>
		        <tr>
		          <th>病例基本信息</th>
		          <td colspan=3><input name="bljbxinxi" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>过敏症状</th>
		          <td colspan=3><input name="guominzz" type="text" style="width:93.5%;"/></td> 
		        </tr>
		         <tr>
		          <th>特点</th>
		          <td colspan=3><input name="tedian" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>处理方法</th>
		          <td colspan=3><input name="buliangfyclff" type="text" style="width:93.5%;"/></td> 
		        </tr>
		         <tr>
		          <th>备注</th>
		          <td colspan=3><input name="memo" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form> 
		      
		      <div class="title">
	    	<span>活性组分信息</span>
	    </div>
	    <form id="zhxcf">
	    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
	        <thead>
	        <tr>
	          <th width="5%">选择</th>
	          <th width="10%">编号</th>
	          <th width="15%">组分名称</th>
	          <th width="10%">组分类型</th>
	          <th width="*">测定方法</th>
	          <th width="15%">组分含量</th>
	          <th width="10%">操作</th>
	        </tr>
	        </thead>
	        <tbody id="tzhxcf"></tbody> 
	      </table>
	      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
	        <tr>
	          <th>编号</th>
	          <td> <input name="id" type="hidden" /><input name="bianhao" type="text" /></td>
	          <th>组分名称</th>
	          <td><input name="zufenmc" type="text" /></td>
	        </tr>
	        <tr>
	          <th>组分类型</th>
	          <td><select id="s_zufenlx_1" m="search" name="zufenlx"/></td>
	          <th>组分含量</th>
	          <td><input name="zufenhl" type="text" /></td>
	        </tr>
	        <tr>
	          <th>测定方法</th>
	          <td><select id="s_zufencdff_1" m="search" name="zufencdff"/></td>
	          <th>鉴定/鉴别方法</th>
	          <td><input name="jianbff" type="text" /></td>
	        </tr>
	        <tr>
	          <th>提取方法</th>
	          <td><select id="s_tiquff_1" m="search" name="tiquff"/></td>
	          <th>分离/纯化方法</th>
	          <td><select id="s_fenliff_1" m="search" name="fenliff"/></td>
	        </tr>
	        <tr>
	          <th>对照品</th>
	          <td><input name="duizhaop" type="text"/></td> 
	          <th>备注</th>
	          <td><input name="memo" type="text"/></td> 
	        </tr>
	        <tr>
	          <th colspan="4">
	          	 <input name="save" type="button" value="保存" class="btn" />
	             <input name="clear" type="button" value="新建" class="btn" />
	          </th>
	        </tr>
	      </table>
	      </form>
		 </div>
      
      
   		<!-- 不良反应报道信息 -->   
		<div id="produce_three" style="display:none">
			<div class="title">
		    	<span>不良反应报道信息</span>
		    </div>
		    <form id="blfybd">
		    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th>药物厂家</th>
		          <th width="20%">治疗病种</th>
		          <th width="15%">给药方式</th>
		          <th width="15%">用法用量</th>
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tblfybd"></tbody> 
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>药物厂家</th>
		          <td><input name="id" type="hidden" /><input name="yapwcj" type="text" /></td>
		          <th>治疗病种</th>
		          <td><input name="zhiliaobz" type="text" /></td>
		        </tr>
		        <tr>
		          <th>给药方式</th>
		          <td><select id="s_geiyaofs" m="search" name="geiyaofs"/></td>
		          <th>用法用量</th>
		          <td><input name="yongfyl" type="text" /></td>
		        </tr>
		        <tr>
		          <th>原因分类</th>
		          <td><select id="s_buliangfyfl" name="buliangfyfl" type="text"/></td> 
		          <th>产生原因</th>
		          <td><select id="s_buliangfyyy" name="buliangfyyy" type="text"/></td> 	
		        </tr>
		        <tr>
		          <th>病例基本信息</th>
		          <td colspan=3><input name="bljbxinxi" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>过敏症状</th>
		          <td colspan=3><input name="guominzz" type="text" style="width:93.5%;"/></td> 
		        </tr>
		         <tr>
		          <th>特点</th>
		          <td colspan=3><input name="tedian" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>处理方法</th>
		          <td colspan=3><input name="buliangfyclff" type="text" style="width:93.5%;"/></td> 
		        </tr>
		         <tr>
		          <th>备注</th>
		          <td colspan=3><input name="memo" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form> 
		</div>


   		<!-- 临床观察信息 -->   
		<div id="produce_four" style="display:none">
			<div class="title">
		    	<span>临床观察信息</span>
		    </div>
		    <form id="linchuang">
		    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="7%">选择</th>
		          <th>研究方法</th>
		          <th width="20%">治疗疾病</th>
		          <th width="15%">研究例数</th>
		          <th width="15%">研究医院</th>
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tlinchuang"></tbody> 
		      </table>
			      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
			        <tr>
			          <th>研究方法</th>
			          <td><input name="id" type="hidden"/><input name="yanjff" type="text" /></td>
			          <th>治疗疾病</th>
			          <td><input name="zhiljb" type="text" /></td>
			        </tr>
			        <tr>
			          <th>研究例数</th>
			          <td><input name="yanjiucount" type="text" /></td>
			          <th>研究医院</th>
			          <td><input name="yanjiuyy" type="text" /></td>
			        </tr>
			        <tr>
			          <th>有效率</th>
			          <td><input name="youxl" type="text" /></td>
			          <th>诊断标准</th>
			          <td><input name="zdbz" type="text" /></td>
			        </tr>
			        <tr>
			          <th>疗效标准</th>
			          <td colspan=3><input name="lxbz" type="text" style="width:93.5%;"/></td> 
			        </tr>
			        <tr>
			          <th>备注</th>
			          <td colspan=3><input name="memo" type="text" style="width:93.5%;"/></td> 
			        </tr>
			        <tr>
			          <th colspan="4">
			          	 <input name="save" type="button" value="保存" class="btn" />
			             <input name="clear" type="button" value="新建" class="btn" />
			          </th>
			        </tr>
			      </table>
		      </form>
		      
		      
		    <div class="title">
		    	<span>对照组信息</span>
		        <em>病例数&nbsp;&nbsp;&nbsp;&nbsp;对照药物&nbsp;&nbsp;&nbsp;&nbsp;不良反应</em>
		    </div>
		    <form id="lcdz">
		    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th width="10%">编号</th>
		          <th width="10%">病例数</th>
		          <th width="10%">对照药物</th>
		          <th width="10%">有效率</th>
		          <th>不良反应</th>
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tlcdz"></tbody> 
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>编号</th>
		          <td><input name="id" type="hidden" /><input name="groupstr" type="text" /></td>
		          <th>病例数</th>
		          <td><input name="bingls" type="text" /></td>
		        </tr>
		        <tr>
		          <th>对照药物</th>
		          <td><input name="dzyw" type="text" /></td>
		          <th>有效率</th>
		          <td><input name="youxl" type="text" /></td>
		        </tr>
		         <tr>
		          <th>不良反应</th>
		          <td colspan=3><input name="bulfy" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th>备注</th>
		          <td colspan=3><input name="memo" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr>
		          <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form>
		      
		      <div class="title">
		    	<span>不良反应信息</span>
		        <em>不良反应类型&nbsp;&nbsp;&nbsp;&nbsp;不良反应表现&nbsp;&nbsp;&nbsp;&nbsp;不良反处理方法</em>
		      </div>
		     <form id="blfyxx">
			    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
			        <thead>
			        <tr>
			          <th width="5%">选择</th>
			          <th width="15%">不良反应类型</th>
			          <th width="*">不良反应表现</th>
			          <th width="30%">不良反处理方法</th> 
			          <th width="10%">操作</th>
			        </tr>
			        </thead>
			        <tbody id="tblfyxx"></tbody> 
			      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>不良反应类型</th>
		          <td><input name="id" type="hidden" /><select id="s_bulfylx" name="bulfylx" m="search" /></td>
		          <th>不良反应表现</th>
		          <td><input name="bulfybx" type="text" /></td>
		        </tr>
		        <tr>
		          <th>不良反处理方法</th>
		          <td><input name="blfyclff" type="text" /></td>
		          <th>其它文献报道相关信息</th>
		          <td><input name="qtwenxianbd" type="text" /></td>
		        </tr> 
		        <tr>
		          <th>备注</th>
		          <td colspan="3"><input name="memo" type="text" style="width:93.5%;"/></td>
		        </tr> 
		        <tr>
		          <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form>
		       <div class="title">
		    	<span>疗效指标</span>
		        <em>指标类型&nbsp;&nbsp;&nbsp;&nbsp;指标名称&nbsp;&nbsp;&nbsp;&nbsp;</em>
		        </div>
		        <form id="lxzb">
		    	<table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th width="30%">指标类型</th>
		          <th width="35%">指标名称</th> 
		           <th width="*">备注</th> 
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tlxzb"></tbody> 
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>指标类型</th>
		          <td><input name="id" type="hidden" /><select id="s_zblx" name="zblx" m="search"/></td>
		          <th>指标名称</th>
		          <td><input name="zbmc" type="text" /></td>
		        </tr>
		         <tr> 
		          <th>有效率</th>
		          <td><input name="youxl" type="text" /></td>
		          <th>备注</th>
		          <td><input name="memo" type="text"/></td>
		        </tr>  
		        <tr>
		          <th colspan="4">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form>
		      
		       <div class="title">
		    	<span>联合用药信息</span>
		        <em>药物名称&nbsp;&nbsp;&nbsp;&nbsp;</em>
		      </div>
		      <form id="lhyy">
		      <table border="0" cellpadding="0" cellspacing="0" class="tableList">
		        <thead>
		        <tr>
		          <th width="5%">选择</th>
		          <th width="10%">药物名称</th>
		          <th>备注</th> 
		          <th width="10%">操作</th>
		        </tr>
		        </thead>
		        <tbody id="tlhyy"></tbody> 
		      </table>
		      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
		        <tr>
		          <th>药物名称</th>
		          <td><input name="id" type="hidden" /><input name="ywmc" type="text" style="width:93.5%;"/></td> 
		        </tr>
		        <tr> 
		          <th>备注</th>
		          <td><input name="memo" type="text" style="width:93.5%;"/></td>
		        </tr> 
		        <tr>
		          <th colspan="2">
		          	 <input name="save" type="button" value="保存" class="btn" />
		             <input name="clear" type="button" value="新建" class="btn" />
		          </th>
		        </tr>
		      </table>
		      </form>
      	</div>
       <!-- 活性组分信息 -->   
	<div id="produce_five" style="display:none">
		<div class="title">
	    	<span>活性组分信息</span>
	    </div>
	    <form id="hxcf">
	    <table border="0" cellpadding="0" cellspacing="0" class="tableList">
	        <thead>
	        <tr>
	          <th width="5%">选择</th>
	          <th width="10%">编号</th>
	          <th width="15%">组分名称</th>
	          <th width="10%">组分类型</th>
	          <th width="*">测定方法</th>
	          <th width="15%">组分含量</th>
	          <th width="10%">操作</th>
	        </tr>
	        </thead>
	        <tbody id="thxcf"></tbody> 
	      </table>
	      <table border="0" cellpadding="0" cellspacing="0" class="tableForm">
	        <tr>
	          <th>编号</th>
	          <td> <input name="id" type="hidden" /><input name="bianhao" type="text" /></td>
	          <th>组分名称</th>
	          <td><input name="zufenmc" type="text" /></td>
	        </tr>
	        <tr>
	          <th>组分类型</th>
	          <td><select id="s_zufenlx" m="search" name="zufenlx"/></td>
	          <th>组分含量</th>
	          <td><input name="zufenhl" type="text" /></td>
	        </tr>
	        <tr>
	          <th>测定方法</th>
	          <td><select id="s_zufencdff" m="search" name="zufencdff"/></td>
	          <th>鉴定/鉴别方法</th>
	          <td><input name="jianbff" type="text" /></td>
	        </tr>
	        <tr>
	          <th>提取方法</th>
	          <td><select id="s_tiquff" m="search" name="tiquff"/></td>
	          <th>分离/纯化方法</th>
	          <td><select id="s_fenliff" m="search" name="fenliff"/></td>
	        </tr>
	        <tr>
	          <th>对照品</th>
	          <td><input name="duizhaop" type="text"/></td> 
	          <th>备注</th>
	          <td><input name="memo" type="text"/></td> 
	        </tr>
	        <tr>
	          <th colspan="4">
	          	 <input name="save" type="button" value="保存" class="btn" />
	             <input name="clear" type="button" value="新建" class="btn" />
	          </th>
	        </tr>
	      </table>
	      </form>
      </div>
	</div>
</body>
</html>
<script>
if (document.getElementById("papercontent")!=null) { 
    //alert(document.documentElement.clientHeight);
    //alert(document.getElementById("contentHighSet").style.height)
    //alert(document.getElementById("contentHighSetLeft").style.height)
    if (document.documentElement.clientHeight > 200) {
        document.getElementById("papercontent").style.height = document.documentElement.clientHeight - 65 + "px";
       // document.getElementById("contentHighSetLeft").style.height = document.documentElement.clientHeight - 30 + "px";
    }
}
$(document).click(function(event) {
	$("[id^=selectcontents_]:visible").remove();
});
</script>